package com.xiaomage.view.draw6

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.activity_main2.*

class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        val myView3=MyView3(this)
        val params3= LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.WRAP_CONTENT,
                500
        )
        myView3.layoutParams=params3
        ll_zong.addView(myView3)
        bt_reset.setOnClickListener{
            myView3.reset()
        }

    }
}
